package com.alks.entity.data.enums;

import lombok.Getter;

@Getter
public enum ResultCodeEnum {
    SUCCESS(true, 200,"成功"),
    EMPTY_DATA(true,201,"查询数据为空"),
    PARAM_ERROR(false,202,"参数错误"),
    FILE_GENERATE(true,210,"文件生成中"),
    RATE_LIMIT(true,211,"访问限制，请求过于频繁"),
    ERROR(true, 500,"未知异常"),
    ERROR_FILE(true, 511,"文件下载异常"),
    LOGIN_USERNAME_NOT_EXIST(false,501,"账号不存在"),
    LOGIN_PASSWORD_ERROR(false,502,"密码错误"),
    LOGIN_PASSWORD_IS_SIMPLE(false,508,"密码过于简单，请重新设置密码"),
    TOKEN_ERROR(false, 503,"TOKEN异常"),
    SERVICE_ERROR(false, 504,"程序内部异常"),
    INPUT_ERROR(false, 505,"入参异常"),
    METHOD_ERROR(false, 505,"请求方式异常"),
    TOKEN_TIME_ERROR(false, 3,"TOKEN 过期||无效"),
    DEFAULT(false, 500,"程序错误"),
    ASSORT_IS_EXIST(false,400,"编码已存在!"),
    ASSORT_IS_NULL(false,400,"编码不能为空!"),
    ADD_SUCCESS(true,200100,"添加成功"),
    ADD_ERROR(false,200101,"添加失败"),
    UPDATE_ERROR(false,200102,"修改失败"),
    SELECT_ERROR(false,200103,"查询异常，请刷新后重试"),
    COMPANY_IS_EXIST(false,200201,"公司名称存在"),
    COMPANY_NAME_NOT_ENGLISH(false,200202,"公司名称必须是英文字母"),
    COMPANY_NAME_NOT_CAPITAL(false,200203,"公司名称必须大写字母"),
    COMPANY_NAME_NOT_SYMBOL(false,200204,"公司名称不能有标点符号"),
    POSITION_ID_EXIST(false,200205,"职务代码不能重复"),
    DEPT_NO_IS_EXIST(false,200206,"部门代码已存在!"),
    OUTPRICE_IS_EMPTY(false,200508,"存在记录没有外接单价明细，不能处理"),
    DATA_NOT_RETURN(false,200510,"数据已不可回滚"),
    DATA_IS_ERR(false,200511,"存在数据错误"),
    DATA_IS_REPEAT(false,200512,"存在数据重复"),
    DATA_IS_EMPTY(false,200512,"存在数为空"),
    IN_IS_EMPTY(false,200601,"必要入参为空"),
    IN_IS_ERROR(false,200602,"存在入参错误"),
    TIME_IS_ERROR(false,200603,"时间参数异常"),
    USER_IS_ERR(false,200604,"无权限操作"),
    FRONT_IN_EMPTY(false,300000,"前端必传参为空"),
    FRONT_IN_ERR(false,300001,"前端必传参异常"),
    LOGIN_ERROR(false,503,"登录异常"),
    LOGIN_CONFIG_IS_NULL(false,505,"存在必须参数为空"),
    LOGIN_PASSWORD_IS_NULL(false,506,"密码错误"),
    LOGIN_TYPE_IS_ERROR(false,507,"当前登录的用户，无法找到页面信息，请核实！");


    private Boolean success;//响应是否成功
    private Integer code;//返回码
    private String message;//返回消息
 
    ResultCodeEnum(Boolean success, Integer code, String message) {
        this.success = success;
        this.code = code;
        this.message = message;
    }
}